package com.wslNB.goods.dao;

import com.wslNB.goods.pojo.Category;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


@Repository
public interface CategoryMapper extends Mapper<Category> {


    @Select("select id,name from tb_category where parent_id = #{id}")
    List<Category> findByCategoryClassify(Integer id);

}
